package cn.xinfei.xdecision.common.datadao;

import cn.xinfei.xdecision.common.datamodel.DecisionResult;
import cn.xinfei.xdecision.common.dynamic.DynamicDataSourceSwitch;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DecisionResultMapper extends BaseMapper<DecisionResult> {
    @Override
    int insert(DecisionResult entity);

    @Override
    int update(@Param(Constants.ENTITY) DecisionResult entity, @Param(Constants.WRAPPER) Wrapper<DecisionResult> updateWrapper);

    @Override
    @DynamicDataSourceSwitch
    List<DecisionResult> selectList(@Param(Constants.WRAPPER) Wrapper<DecisionResult> queryWrapper);
}
